package cn.edu.scau.cmi.longyuanjun.abstractFactoryMode;

public abstract class BuildInsuranceCompany {
	/*
	public static final String accidents = "accidents";
	public static final String bodyInjur = "bodyinjur";
	public static final String casualties = "casualties";
	public static final String collision = "collision";
	*/
	public static final String picc = "PICC";
	public static final String pingAn = "PingAn";
	static BuildInsuranceCompany copy = null;
	
	public abstract String getService();
	//public abstract String getBodyInjur();
	//public abstract String getCasualties();
	//public abstract String getCollision();
	
	public static BuildInsuranceCompany getInsuranceCompany(String type, String sType) {
		BuildInsuranceCompany bic = null;
		if (type.equals(BuildInsuranceCompany.picc)) {
			bic =  PICCService.getPICCServiceType(sType);
		}
		if (type.equals(BuildInsuranceCompany.pingAn)) {
			bic =  PingAnService.getPingAnServiceType(sType);
		}
		//copy = bic;
		return bic;
	}
	

}
